package com.ec.file.common.enums;


import com.ec.core.common.core.api.IResultEnum;


/**
 * @description:
 * @author: Eric Lee
 * @time: 2021/5/25 15:49
 */
public enum RespResultEnum implements IResultEnum {
    /**
     * 上传的文件数异常
     */
    UPLOAD_FILE_COUNT_ERROR(60000, "请选择上传的文件"),
    /**
     * 上传文件格式异常
     */
    UPLOAD_FILE_TYPE_ERROR(60001, "请选择上传的文件"),
    /**
     * 上传文件异常
     */
    UPLOAD_LOCAL_ERROR(60002, "上传文件异常"),
    /**
     * 保存到OSS异常
     */
    UPLOAD_OSS_ERROR(60003, "保存到OSS异常"),
    ;

    final Integer code;
    final String message;

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    RespResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
